package com.daijie.demo

import android.app.Application

class App : Application() {

    private val retrofitManager by lazy { RetrofitManager(this) }

    val retrofit
        get() = retrofitManager.retrofit
    val cookieCache
        get() = retrofitManager.cookieCache

    override fun onCreate() {
        super.onCreate()
        instance = this
    }

    companion object {
        lateinit var instance: App
    }
}